﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace LiveEduWizard
{
    public partial class SplashScreen : UserControl
    {
        public SplashScreen()
        {
            InitializeComponent();

            MainBackground.Source = new BitmapImage(
                new Uri(ThemeHelper.IsLightTheme ? "/Images/background_white.png" : "/Images/background_black.png", UriKind.Relative));
        }

        public bool IsSplash 
        {
            get { return MainBackground.Visibility == System.Windows.Visibility.Visible; }
            set { MainBackground.Visibility = value ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed; } 
        }

        public bool IsProgress
        {
            get { return ProgressBar.Visibility == System.Windows.Visibility.Visible; }
            set { ProgressBar.Visibility = value ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed; }
        }
    }
}
